tools/xl: Fix trim() following c/s e316316 "xl: Rewrite trim()"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Jul 2015 19:18:31 +0000 (20:18 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 17 Jul 2015 09:57:20 +0000 (10:57 +0100)
commit74c022b6eb46da747c280b6fdc370754864eef3a
tree909f92d46062baf7ea7d9780fc2b52bfcbde22f6
parente316316fd68ed766948f19f07cfb6d871edf0286
tools/xl: Fix trim() following c/s e316316 "xl: Rewrite trim()"

c/s e316316 "xl: Rewrite trim()" uses the wrong indirection of
'output', causing memory corruption for all callers.

Introduce a new local variable, making the code more obviously
correct.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c